import { WeaTools } from 'ecCom';

export const result = params => WeaTools.callApi('/api/voting/list/result', 'GET', params);

export const condition = params => WeaTools.callApi('/api/voting/list/condition', 'GET', params);

export const rightMenu = params => WeaTools.callApi('/api/voting/list/rightMenu', 'GET', params);

export const viewResult = params => WeaTools.callApi('/api/voting/view/result', 'GET', params);
export const undoPerson = params => WeaTools.callApi('/api/voting/view/undoPerson', 'GET', params);
export const doPerson = params => WeaTools.callApi('/api/voting/view/doPerson', 'GET', params);
export const partSituation = params => WeaTools.callApi('/api/voting/view/partSituation', 'GET', params);
export const viewCondition = params => WeaTools.callApi('/api/voting/view/condition', 'GET', params);
export const viewConditionEdit = params => WeaTools.callApi('/api/voting/view/conditionEdit', 'GET', params);

export const doPersonOfQuesion = params => WeaTools.callApi('/api/voting/view/doPersonOfQuesion', 'GET', params);
export const doPersonOfOption = params => WeaTools.callApi('/api/voting/view/doPersonOfOption', 'GET', params);
export const doPersonOfOther = params => WeaTools.callApi('/api/voting/view/doPersonOfOther', 'GET', params);
export const doPersonOfInput = params => WeaTools.callApi('/api/voting/view/doPersonOfInput', 'GET', params);
// 详细数据
export const getData = params => WeaTools.callApi('/api/voting/data/getData', 'GET', params);
// 调查催办
export const urgent = params => WeaTools.callApi('/api/voting/view/urgent', 'POST', params);
// 调查催办
export const urgentNum = params => WeaTools.callApi('/api/voting/view/urgentNum', 'GET', params);
